Interrupt 21h Function 71A6h 

Retrieves information about the specified file.

mov ax, 71a6h              ; Get File Info By Handle

mov bx, Handle             ; see below

mov dx, seg lpFileInfo     ; see below

mov ds, dx                

mov dx, offset lpFileInfo

stc                        ; must set carry flag

int 21h

 

jnc success

cmp ax, 7100h

je not_supported

 

Parameters

Handle

File handle to retrieve information about.

lpFileInfo

Address of a BY_HANDLE_FILE_INFORMATIONFX2QMY structure that receives the file information. The structure can be used in subsequent calls to Get File Info By Handle to refer to the information about the file.

 

Return Value

Clears the carry flag if successful. Otherwise, the function sets the carry flag and sets the AX register to an error value.

Remarks

Note that it is important to explicitly set the carry flag before calling this function.